# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin

from .models import IndexNoticeMessage, IndexBannerPic
# Register your models here.

# class BannerPicInline(admin.TabularInline):
#     model = IndexBannerPic
#     extra = 3



class IndexNoticeMessageAdmin(admin.ModelAdmin):
    fieldsets = [
        ("Content", {'fields': ['title','message_text','message_type']}),
        ('Date information', {'fields': ['start_time','end_time'], 'classes': ['collapse']}),
    ]
    # inlines = [ChoiceInline]

    list_display = ('question_text', 'pub_date')
    search_fields = ['question_text']


admin.site.register(IndexNoticeMessage)